package com.personnel.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * (LeaveRequest)实体类
 *
 * @author yuepeng
 * @since 2022-03-01 09:35:52
 * @version 1.0
 */
public class LeaveRequest implements Serializable {
    private static final long serialVersionUID = -35229861281648217L;
    /**
    * 主键id
    */
    private Integer leaveRequestId;
    /**
    * 员工id
    */
    private Integer leaveRequestStaffId;
    /**
    * 请假类型
    */
    private String leaveType;
    /**
    * 发起时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp applyTime;
    /**
     * 开始日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp leaveTime;
    /**
    * 回来日期
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp backTime;
    /**
    * 请假天数
    */
    private Integer leaveDays;
    /**
    * 请假理由
    */
    private String reason;
    /**
    * 附件
    */
    private String extraFile;
    /**
    * 审核状态（0为审核中，1为审核通过，2为不通过）
    */
    private Integer status;

    private Staff staff;

    private Department department;

    private Job job;

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public Job getJob() {
        return job;
    }

    public void setJob(Job job) {
        this.job = job;
    }

    public Staff getStaff() {
        return staff;
    }

    public void setStaff(Staff staff) {
        this.staff = staff;
    }


    public Integer getLeaveRequestId() {
        return leaveRequestId;
    }

    public void setLeaveRequestId(Integer leaveRequestId) {
        this.leaveRequestId = leaveRequestId;
    }

    public Integer getLeaveRequestStaffId() {
        return leaveRequestStaffId;
    }

    public void setLeaveRequestStaffId(Integer leaveRequestStaffId) {
        this.leaveRequestStaffId = leaveRequestStaffId;
    }

    public String getLeaveType() {
        return leaveType;
    }

    public void setLeaveType(String leaveType) {
        this.leaveType = leaveType;
    }

    public Timestamp getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Timestamp applyTime) {
        this.applyTime = applyTime;
    }

    public Timestamp getLeaveTime() {
        return leaveTime;
    }

    public void setLeaveTime(Timestamp leaveTime) {
        this.leaveTime = leaveTime;
    }

    public Timestamp getBackTime() {
        return backTime;
    }

    public void setBackTime(Timestamp backTime) {
        this.backTime = backTime;
    }

    public Integer getLeaveDays() {
        return leaveDays;
    }

    public void setLeaveDays(Integer leaveDays) {
        this.leaveDays = leaveDays;
    }
        
    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
        
    public String getExtraFile() {
        return extraFile;
    }

    public void setExtraFile(String extraFile) {
        this.extraFile = extraFile;
    }
        
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
        


}